package com.cqc.drawable01;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;
import android.util.Log;

/**
 * Created by ${cqc} on 2017/5/19.
 */

public class IntentValueService extends Service {


    private static final String TAG = "IntentValueService";

    @Override
    public void onCreate() {
        super.onCreate();
    }


    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        String orderCode = intent.getStringExtra("orderCode");
        Log.d(TAG,"onStartCommand,orderCode="+orderCode);
        return super.onStartCommand(intent, flags, startId);
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {

        return null;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.d(TAG,"onDestroy");
    }
}
